//
//  UserViewController.swift
//  DemoUI
// 
//  Created by 白瑾浩 on 2022/1/8.
//

import UIKit

class UserViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.tabBarItem.title = "用户中心"
        self.view.backgroundColor = UIColor.green
        // Do any additional setup after loading the view.
        //在tabBarController已经写好 这里在定义一次
        let item = UITabBarItem(tabBarSystemItem: UITabBarItem.SystemItem.favorites, tag: 1)
        
        self.tabBarItem = item
        
        self.tabBarItem.badgeColor = UIColor.red
        self.tabBarItem.badgeValue = "新消息"
        
        
        
        
        
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
